#ifndef MEMORY_H
#define MEMORY_H

#include <string.h>
#include "type.h"

#define MEMORY_WORDS 32768
#define MEMORY_MASK MEMORY_WORDS - 1

/*
	 utility functions for setting up the contents of memory
*/
int load_memory (word *buf, int size);
int clear_memory (void);

/*
	 access functions used by GAX
*/
word read_memory (word address);
void write_memory (word address, word data);

#endif

